import 'package:flutter_ncsjqz_getx/generated/json/base/json_field.dart';
import 'package:flutter_ncsjqz_getx/generated/json/commodity_details_entity.g.dart';


@JsonSerializable()
class CommodityDetailsEntity {

	CommodityDetailsEntity();

	factory CommodityDetailsEntity.fromJson(Map<String, dynamic> json) => $CommodityDetailsEntityFromJson(json);

	Map<String, dynamic> toJson() => $CommodityDetailsEntityToJson(this);

	String? msg;
	int? code;
	CommodityDetailsData? data;
}

@JsonSerializable()
class CommodityDetailsData {

	CommodityDetailsData();

	factory CommodityDetailsData.fromJson(Map<String, dynamic> json) => $CommodityDetailsDataFromJson(json);

	Map<String, dynamic> toJson() => $CommodityDetailsDataToJson(this);

	int? commodityId;
	int? shopId;
	dynamic? shopPic;
	String? commodityName;
	String? masterPic;
	int? price;
	int? originalPrice;
	String? acreage;
	String? title;
	String? commodityVideo;
	String? monitorLink;
	dynamic? shopName;
	int? locationId;
	String? brief;
	int? status;
	int? categoryId;
	int? parentCategoryId;
	int? soldNum;
	int? totalStocks;
	String? content;
	String? deliveryAddress;
	CommodityDetailsDataLocation? location;
	dynamic? distance;
	List<CommodityDetailsDataSkuList>? skuList;
	dynamic? masterUrls;
	dynamic? slaveUrls;
	List<CommodityDetailsDataProps>? props;
	int? amount;//数量
}

@JsonSerializable()
class CommodityDetailsDataLocation {

	CommodityDetailsDataLocation();

	factory CommodityDetailsDataLocation.fromJson(Map<String, dynamic> json) => $CommodityDetailsDataLocationFromJson(json);

	Map<String, dynamic> toJson() => $CommodityDetailsDataLocationToJson(this);

	double? lat;
	double? lon;
	String? geohash;
	bool? fragment;
}

@JsonSerializable()
class CommodityDetailsDataSkuList {

	CommodityDetailsDataSkuList();

	factory CommodityDetailsDataSkuList.fromJson(Map<String, dynamic> json) => $CommodityDetailsDataSkuListFromJson(json);

	Map<String, dynamic> toJson() => $CommodityDetailsDataSkuListToJson(this);

	int? skuId;
	int? commodityId;
	String? properties;
	int? oriPrice;
	int? actualStocks;
	String? skuName;
	String? skuFullName;
	String? picUrl;
	int? status;
	int? isDelete;
}

@JsonSerializable()
class CommodityDetailsDataProps {

	CommodityDetailsDataProps();

	factory CommodityDetailsDataProps.fromJson(Map<String, dynamic> json) => $CommodityDetailsDataPropsFromJson(json);

	Map<String, dynamic> toJson() => $CommodityDetailsDataPropsToJson(this);

	int? propId;
	int? commodityId;
	String? propName;
	List<CommodityDetailsDataPropsPropValues>? propValues;
}

@JsonSerializable()
class CommodityDetailsDataPropsPropValues {

	CommodityDetailsDataPropsPropValues();

	factory CommodityDetailsDataPropsPropValues.fromJson(Map<String, dynamic> json) => $CommodityDetailsDataPropsPropValuesFromJson(json);

	Map<String, dynamic> toJson() => $CommodityDetailsDataPropsPropValuesToJson(this);

	int? valueId;
	String? propValue;
	int? propId;
	bool? select = false;
	String? propUrl;
}
